package com.domor.xxx.system.domain;

import com.domor.xxx.common.annotation.Excel;
import com.domor.xxx.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;

/**
 * <h3>字典类型表 sys_dict_type</h3>
 *
 * @author liyuyang
 * @date 2020/4/30
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class SysDictType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 字典主键
     */
    @Excel(name = "字典主键", cellType = Excel.ColumnType.NUMERIC)
    private Integer dictId;

    /**
     * 字典名称
     */
    @Excel(name = "字典名称")
    @Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符")
    private String dictName;

    /**
     * 字典类型
     */
    @Excel(name = "字典类型")
    @Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private int status;

}
